var t = getApp();

Page({
    data: {
        listData: [],
        page: 1,
        finished: !1
    },
    onLoad: function(t) {
        this.getData();
    },
    onReachBottom: function() {
        this.getData();
    },
    getData: function() {
        var a = this;
        if (!this.data.finished) {
            var e = t.getNetAddresss("plugin.stock-service.frontend.controllers.statement.index");
            t._getNetWork({
                url: e,
                data: {
                    page: this.data.page
                },
                success: function(t) {
                    if (1 !== t.data.result) return wx.showToast({
                        title: t.data.msg
                    }), !1;
                    var e, s = t.data.data, i = !1;
                    (0 === s.list.data.length || s.list.data.length < s.list.per_page || s.list.current_page === s.list.last_page) && (i = !0), 
                    e = a.data.listData.concat(s.list.data), a.setData({
                        finished: i,
                        listData: e,
                        page: ++a.data.page
                    });
                }
            });
        }
    }
});